package STUDENT.TRANNGUYENQUAN.OOPs.OBJECT_AND_CLASSES.Bai5;

public class Models {
	public String Status(UserInfo user) {
		String result = "";
		switch (user.getStatus()) {
		case 0:
			result = "single";
			break;
		case 1:
			result = "divorced";
			break;
		case 2:
			result = "married";
			break;
		}
		return result;
	}

	public String Sex(UserInfo user) {
		String result = "";
		switch (user.getSex()) {
		case 0:
			result = "male";
			break;
		case 1:
			result = "female";
			break;
		}
		return result;
	}
}
